package com.inspection.model.dto;

import com.inspection.support.AssertUtils;
import lombok.Data;

/**
 * @author zhaoqi
 * @since 2020-12-03
 */
@Data
public class InspectionChartDTO {

    /**
     * 考核类型
     */
    private String InspectionType;
    /**
     * 汇总年度
     */
    private Integer year;
    /**
     * 考核周期
     */
    private String inspectionCycle;
    /**
     * 考核周期数
     */
    private Integer inspectionCycleNumber;

    public void validate(){
        AssertUtils.nonNull(year,"请选择汇总年份！");
        AssertUtils.nonNull(InspectionType,"请选择考核类型！");
        AssertUtils.nonNull(inspectionCycle,"请选择考核周期！");
        AssertUtils.nonNull(inspectionCycleNumber,"请选择考核周期数！");
    }
    

}
